<template>
	<view>
		我的
		<u-tabs :list="cityList"  name="title" :is-scroll="false" :current="current" @change="change"></u-tabs>
	</view>
</template>

<script>
	import requestUrl from '@/src/service/request.js'
	export default {
		data() {
			return {
				current: 0,
				cityList: []
			}
		},
		mounted() {
			let obj = {
				id: 1
			};
			requestUrl.requestCate(obj).then(res=> {
			  if(res) {
			    this.cityList = Object.freeze(res)
			  }
			})
		},
		methods: {
			change(index) {
				this.current = index
			}
		}
	}
</script>

<style>
</style>
